Head to the Kali Linux website.
Download the ISO image that matches your system (64-bit is a good choice for most users).
Install VirtualBox:
Go to virtualbox.org and download the installer for your operating system.
Follow the steps to install VirtualBox.
Set Up the Virtual Machine:
Launch VirtualBox and click New.
Name your VM (e.g., "Kali Linux"), select Linux as the type, and choose Debian (64-bit) as the version.
Allocate at least 2GB of RAM (4GB if possible).
Attach the ISO File:
In the VM setup, create a virtual hard disk (20GB or more is recommended).
After the VM is created, go to Settings > Storage.
Under "Controller: IDE," select the Empty disk, and browse to the Kali ISO file.
Boot the VM:
Click Start to run the VM.
Follow the Kali Linux installation prompts to complete the setup.
Install VMware Fusion:
Download VMware Fusion from vmware.com and install it.
Create a New Virtual Machine:
Open VMware Fusion and click Create a New Virtual Machine.
Select the Kali ISO file by dragging it into the window or browsing for it.
Configure the VM:
Assign 2GB or more RAM (4GB for better performance).
Set the disk size to 20GB or more.
Install Kali Linux:
Start the VM.
Follow the on-screen instructions to install and set up Kali.
Optimize Your VM (Optional):
Install Guest Additions (VirtualBox) or VMware Tools to improve performance and enable features like fullscreen mode.
Update Kali Linux:
After setup, open the terminal in Kali and run:
sudo apt update
That’s it! Your Kali Linux virtual machine is now ready to use in both VirtualBox and VMware Fusion.